package loveqq.niceexcel.exception;

import loveqq.niceexcel.read.ReadSheet;

import java.text.MessageFormat;

/**
 * 定位单元格数据转换异常
 *
 * @author zhongjh@tsintergy.com
 * @date 2022-08-27
 */
public class LocatedDataConvertException extends RuntimeException {

    public LocatedDataConvertException(Throwable cause) {
        super("定位单元格数据转换设置属性出错", cause);
    }

    public LocatedDataConvertException(String message, Object... args) {
        super(MessageFormat.format(message, args));
    }

    public LocatedDataConvertException(Throwable cause, String message, Object... args) {
        super(MessageFormat.format(message, args), cause);
    }

    public LocatedDataConvertException(Throwable cause, ReadSheet<?> sheet) {
        this(cause, "定位单元格数据转换设置属性出错: {0}", sheet);
    }

}
